
package com.yuejie.musicai.log;

import org.apache.log4j.Logger;

/**
 * 日志记录
 * 
 */

public class LogServiceImpl {
	
	/** 登陆日志 */
	static Logger expLogger = Logger.getLogger("file");
	
	public static void log(LogLevelEnum level, String logString)
	{
		switch (level) {
		case INFO:
			expLogger.info(logString);
			break;
		case WARN:
			expLogger.warn(logString);
			break;
		case ERROR:
			expLogger.error(logString);
		default:
			break;
		}
	}

}
